import { getInfolist } from '@/API/index.js'
export default {
  state: {
    infolist: []
  },
  mutations: {
    setinfolist (state, value) {
      state.infolist = value
    }

  },
  actions: {
    async AgetInfolist (context, id) {
      const res = await getInfolist(id)
      context.commit('setinfolist', res.data.data.results)
      console.log(res, 222)
    }
  },
  getters: {},
  namespaced: true
}
